Learn R Programming

bnlearn (version 4.9.4)

node ordering utilities: Partial node orderings

Description

Find the partial node ordering implied by a network.

Usage

node.ordering(x, debug = FALSE)

Value

node.ordering() returns a vector of character strings, an ordered set of node labels.

Arguments

x

an object of class bn or bn.fit.

debug

a boolean value. If TRUE a lot of debugging output is printed; otherwise the function is completely silent.

Author

Marco Scutari

Examples

Run this code
dag = random.graph(LETTERS[1:10])
ord = node.ordering(dag)
ord

Run the code above in your browser using DataLab